package com.byb.server.service;

import com.byb.server.service.dto.IsurerDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * Service Interface for managing Isurer.
 */
public interface IsurerService {

    /**
     * Save a isurer.
     *
     * @param isurerDTO the entity to save
     * @return the persisted entity
     */
    IsurerDTO save(IsurerDTO isurerDTO);

    /**
     *  Get all the isurers.
     *
     *  @param pageable the pagination information
     *  @return the list of entities
     */
    Page<IsurerDTO> findAll(Pageable pageable);

    /**
     *  Get the "id" isurer.
     *
     *  @param id the id of the entity
     *  @return the entity
     */
    IsurerDTO findOne(Long id);

    /**
     *  Delete the "id" isurer.
     *
     *  @param id the id of the entity
     */
    void delete(Long id);

    /**
     * Search for the isurer corresponding to the query.
     *
     *  @param query the query of the search
     *  
     *  @param pageable the pagination information
     *  @return the list of entities
     */
    Page<IsurerDTO> search(String query, Pageable pageable);
}
